package com.lyf.dao;

import com.lyf.entity.Payment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/5
 * @VERSION 1.0
 * @DESC
 */
@Mapper
public interface PaymentDao {

    @Insert("INSERT INTO payment values(#{id},#{serial})")
    int create(Payment payment);

    @Select("SELECT * FROM payment where id = #{id}")
    Payment getById(Long id);

}
